import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SharedModule } from '@shared/shared.module';

import {PreviewComponent} from "./fullscreen/preview.component";
import {NgxQRCodeModule} from "@techiediaries/ngx-qrcode";
import { ServerSocket } from '@core/services/ws.service';
import { SceneModule } from '../project/scene/scene.module';

const routes: Routes = [
    { path: '', component: PreviewComponent, pathMatch: 'full'}
];

@NgModule({
    imports: [
        NgxQRCodeModule,
        SharedModule,
        RouterModule.forChild(routes),
        SceneModule
    ],
    providers: [
        ServerSocket
    ],
    declarations: [
        PreviewComponent
    ],
    exports: [
        RouterModule
    ]
})
export class PreviewModule { }
